package com.sand.dao;

import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

public interface IBaseDao {
    boolean addObject(Object obj);
    boolean delObject(Object obj);
    boolean delAllObject(List list);
    boolean updateObject(Object obj);

    Object queryObjectById(Class cls,int id);
    List queryObject(String hql,Object ...param);
    List queryObjectLimit(DetachedCriteria dc, int begin, int pageSize);
    List queryObjectCommon(DetachedCriteria dc);
}
